package com.qdxwx.models.coupon;

import java.time.LocalDate;

/**
 * 优惠卷编码类
 *
 */
public class CouponCodeDTO extends CouponCode {

    private static final long serialVersionUID = 7306823517586056231L;
    /**
     * 优惠卷名称
     */
    private String title;
    /**
     * 使用限额0.不限制，否则大于等于
     */
    private Integer limitAmount;
    /**
     * 优惠折扣、金额
     */
    private Integer amount;
    /**
     * 生成类型：1。公用（只生成1个优惠券，有效期内所有人都可以使用）2，每人独立使用
     */
    private int useType;
    /**
     * 类型1为打折2定额3会员优惠券（定额）
     */
    private int type;
    /**
     * 操作者
     */
    private String managerName;
    /**
     * 项目Id
     */
    private Integer channelId;

    /**
     * 有效时间
     */
    private LocalDate startDate;
    /**
     * 有效结束时间
     */
    private LocalDate endDate;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getLimitAmount() {
        return limitAmount;
    }

    public void setLimitAmount(Integer limitAmount) {
        this.limitAmount = limitAmount;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public int getUseType() {
        return useType;
    }

    public void setUseType(int useType) {
        this.useType = useType;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "CouponCodeDTO{" +
                "id=" + id +
                ", couponId=" + couponId +
                ", couponCode='" + couponCode + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", orderId=" + orderId +
                ", useTime=" + useTime +
                ", payTime=" + payTime +
                ", status=" + status +
                ", isRemind='" + isRemind + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", createTime=" + createTime +
                ", title='" + title + '\'' +
                ", limitAmount=" + limitAmount +
                ", amount=" + amount +
                ", useType=" + useType +
                ", type=" + type +
                ", managerName='" + managerName + '\'' +
                ", channelId=" + channelId +
                '}';
    }
}
